*OPEN STATA OUTPUT FILE LOG *


*log using "C:\Users\gk57526\Dropbox\Confirmation Dynamics Project (Jason Byers)\Confirmation Delay & Senate Committees\2023 Version\Fall 2024\Statistics\Output\Committee Delay.APPENDIX D RESULTS.smcl", replace

log using "/Users/jasonbyers/Dropbox/Jason Byers/Co-Authored Projects/Projects with George Krause/Krause Projects/Confirmation Dynamics Project/Confirmation Delay & Senate Committees/2023 Version/Fall 2024/Statistics/Output/Committee Delay.APPENDIX D RESULTS.smcl", replace

  
  
**** JSB UPDATED DATABASE: ADDING EXECUTIVE NOMINATION POSITIONS COVERED IN OSTRANDER DATABASE FROM MAY 2012 THROUGH DECEMBER 2020 AND UPDATING ALL OTHER DATA [SUMMER/FALL 2023]: /// 
*** ADDITIONAL VARIABLES ADDED IN MARCH 2024 IN RESPSONSE TO LSQ REFEREE REPORTS ****

**** "EXECUTIVE DEFERENCE OR LEGISLATIVE CONSTRAINT? COMMITTEE FOUNDATIONS OF CONFIRMATION DELAY FOR U.S. EXECUTIVE BRANCH APPOINTMENTS" [KRAUSE & BYERS] ****

 

   
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************
   


 
**** SENSITIVITY ANALYSIS REGARDING ALTERNATIVE SURVIVAL MODELS [MANUSCRIPT: NO PRESIDENT-AGENCY IDEOLOGICAL ALIGNMENT/NEUTRAL/OPPOSITION DISTINCTIONS ARE MADE] ****
**** NOTE: ALTERNATIVE ANALYSES/MODELS DISAGGREGATED BY SUBSAMPLE FOR EACH PRESIDENTI-AGENCY IDEOLOGICAL CONFIGURATION ****



*******  A. PRESIDENT-AGENCY IDEOLOGICAL ALIGNMENT:  IDPRESALLY==1                    [PRESIDENTIAL-AGENCY IDEOLOGICAL ALIGNMENT ALTERNATIVE, 1] 
*******  B. PRESIDENT-AGENCY IDEOLOGICAL OPPOSITION: IDPRESOPPOSE==1                  [PRESIDENTIAL-AGENCY IDEOLOGICAL ALIGNMENT ALTERNATIVE, 2] 
*******  C. PRESIDENT-AGENCY IDEOLOGICAL NEUTRALITY: IDPRESALLY==0 & IDPRESOPPOSE==0  [PRESIDENTIAL-AGENCY IDEOLOGICAL ALIGNMENT ALTERNATIVE, 3]
   

   
   
*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************        
                             
  
   ******  NOTE: CASES NATURALLY OMITTED WHERE CLINTON-LEWIS AGENCY IDEOLOGY IS A MISSING VALUE SINCE NO ESTIMATE IS AVAILABLE FOR SUCH AGENCIES     
 
 
 

**************************************************************************************************************************************************************************************** **************************************************************************************************************************************************************************************** *************************************************************************************************************************************************************************************** ****************************************************************************************************************************************************************************************
			  			  
	
  
*** COMMITTEE CONTROL COVARIATES:       experience_median / chair_experience_1; ///
***										ln_combills_workload; committeestaffsize [# Committee Staff]   
    
*** OSTRANDER CONTROL COVARIATES:       sendivide  polarization pres_app_m first90 preselection lameduck workload [Executive Civilian Nominations: Senate] 
***										female priorconfirm _Itier_2 _Itier_3 _Itier_4 defense infrastructure social


*** ADDITIONAL CONTROL COVARIATES:      pressenfloorabsdist [-] [|Senate Floor Median - President|]; kv_workload (# civilian executive nominations made in a given year/session)	
***										denied [-] [nominee previously denied in same Congress]; fvra [+] [= 1 if subject to FVRA 1998, = 0 otherwise]; 
***										firstrecess[-] [= 1 is nominated in July or August affected by August Recess, = 0 otherwise]; 
*** 									secondrecess [-] [= 1 is nominated in November or December affected by December Recess, = 0 otherwise]; major policy agency binary indicator [-];                      
***                                     committee-level & pressidential administration unit/fixed effects.
                                        
                                
							                       
 
	   
	   
	   

  
 * OPEN UPDATED "CONFIRMATION DELAY & SENATE COMMITTEES PROJECT" MANUSCRIPT DATABASE [12-23-2024] *
 
*use "C:\Users\gk57526\Dropbox\Confirmation Dynamics Project (Jason Byers)\Confirmation Delay & Senate Committees\2023 Version\Fall 2024\Statistics\Data\Committee Delay.MANUSCRIPT RESULTS.12-23-2024.dta", replace


use "/Users/jasonbyers/Dropbox/Jason Byers/Co-Authored Projects/Projects with George Krause/Krause Projects/Confirmation Dynamics Project/Confirmation Delay & Senate Committees/2023 Version/Fall 2024/Statistics/Data/Committee Delay.MANUSCRIPT RESULTS.12-23-2024.dta", replace



****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
  




*** SET SURVIVAL TIME FUNCTION [STSET] *** 

stset legvetdur2plus1, failure(confirmbinary)

*
*
*

*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



*** A. PRESIDENTIAL IDEOLOGICALLY-ALIGNED AGENCIES ***





** SET UP DATA TO BE READ IN DURATION/SURVIVAL TIME FORM & CREATE REQUISITE INTERACTION VARIABLES TO BE USED IN EVALUATING PARTISAN SELECTIVE COMMITTEE DELAY HYPOTHESIS **

stset legvetdur2plus1, failure(confirmbinary)

*
*
*
*


* SENATE COMMITTEE MEDIAN PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D1.A: COX SEMIPARAMETRIC MODEL] -- IDPRESALLY==1 *

stcox  c.committee_pres1##i.sendivide   pressenfloorabsdist  experience_median  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency  i.kbcom_1 i.presrev  if idpresally==1,  vce(cluster kbcom_1)

*
*

* DESCRIPTIVE STATISTICS FOR EACH PARTISAN CONTROL REGIME *
sum wSenComm_committee_pres1 if e(sample) & sendivide==0, detail
sum wSenComm_committee_pres1 if e(sample) & sendivide==1, detail


** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_committee_pres1" [IDPRESALLY==1]  *
lincomest (committee_pres1 * 0.5026417 +  1.sendivide#c.committee_pres1 * 0.312) - committee_pres1 * 0.5026417, eform(hr)
matrix modelD1a = r(table)
mat list modelD1a



******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* SENATE COMMITTEE CHAIR PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D2.A: COX SEMIPARAMETRIC MODEL] -- IDPRESALLY==1 *

stcox  c.chair_pres1##i.sendivide  pressenfloorabsdist  chair_experience_1  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency   i.kbcom_1  i.presrev  if idpresally==1,  vce(cluster kbcom_1)
*
*



* DESCRIPTIVE STATISTICS FOR EACH PARTISAN CONTROL REGIME *
sum wSenComm_chair_pres1 if e(sample) & sendivide==0, detail
sum wSenComm_chair_pres1 if e(sample) & sendivide==1, detail



* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_committee_pres1"  [IDPRESALLY==1]  *
lincomest (chair_pres1 * 0.265 +  1.sendivide#c.chair_pres1 * 0.3219376) - chair_pres1 * 0.265, eform(hr)
matrix modelD2a = r(table)
mat list modelD2a
*
*


******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* SENATE COMMITTEE MEDIAN PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D3.A: WEIBULL PARAMETRIC MODEL] -- IDPRESALLY==1 *

streg  c.committee_pres1##i.sendivide   pressenfloorabsdist  experience_median  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency  i.kbcom_1  i.presrev  if idpresally==1,  distribution(weibull) vce(cluster kbcom_1)

*
*

** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_committee_pres1" [IDPRESALLY==1]  *
lincomest (committee_pres1 * 0.5026417 +  1.sendivide#c.committee_pres1 * 0.312) - committee_pres1 * 0.5026417, eform(hr)
matrix modelD3a = r(table)
mat list modelD3a




*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* SENATE COMMITTEE CHAIR PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D4.A: WEIBULL PARAMETRIC MODEL] -- IDPRESALLY==1 *

streg  c.chair_pres1##i.sendivide   pressenfloorabsdist  chair_experience_1  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency  i.kbcom_1  i.presrev if idpresally==1,  distribution(weibull)  vce(cluster kbcom_1)
*
*


* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_committee_pres1"  [IDPRESALLY==1]  *
lincomest (chair_pres1 * 0.265 +  1.sendivide#c.chair_pres1 * 0.3219376) - chair_pres1 * 0.265, eform(hr)
matrix modelD4a = r(table)
mat list modelD4a
*
*


**** CREATE FIGURE D1 BASED ON MARGINAL HAZARD RATIO ESTIMATE EFFECTS FROM MODELS D1.A - D4.A ****


**** FIGURE D1 ****

matrix A = J(4, 3, .)
matrix coln A = Point ll95 ul95
matrix rown A = 1 2 3 4

matrix A[1,1] = modelD1a[1,1]
matrix A[1,2] = modelD1a[5,1]
matrix A[1,3] = modelD1a[6,1]

matrix A[2,1] = modelD2a[1,1]
matrix A[2,2] = modelD2a[5,1]
matrix A[2,3] = modelD2a[6,1]

matrix A[3,1] = modelD3a[1,1]
matrix A[3,2] = modelD3a[5,1]
matrix A[3,3] = modelD3a[6,1]

matrix A[4,1] = modelD4a[1,1]
matrix A[4,2] = modelD4a[5,1]
matrix A[4,3] = modelD4a[6,1]


**********

coefplot (matrix(A[,1]), ci((2 3))), grid(none) xline(1, lcolor(red%40) lpattern(dash)) xtitle("Hazard Ratio", size(small) margin(t=2)) ylabel(1 "Model D1.A" 2 "Model D2.A" 3 "Model D3.A" 4 "Model D4.A", labsize(small) noticks) mlabel format(%9.3f) mlabposition(12) mlabsize(vsmall) xlabel(0(1)3, angle(0) labsize(small) format(%9.1f)) msymbol(o) mcolor(black) msize(small) title("FIGURE D1", size(med)) ciopts(lcolor(black)) legend(off) subtitle("Differential Partisan Control Effects of Committee-President Ideological Distance" "(Presidential Ideologically-Aligned Agencies)", size(small))


graph save "Graph" "/Users/jasonbyers/Dropbox/Jason Byers/Co-Authored Projects/Projects with George Krause/Krause Projects/Confirmation Dynamics Project/Confirmation Delay & Senate Committees/2023 Version/Fall 2024/Statistics/Graphics/Appendix D/FigureD1.gph", replace




****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************





*** B. PRESIDENTIAL IDEOLOGICALLY-OPPOSED AGENCIES ***





* SENATE COMMITTEE MEDIAN PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D1.B: COX SEMIPARAMETRIC MODEL] -- IDPRESOPPOSE==1 *

stcox  c.committee_pres1##i.sendivide   pressenfloorabsdist  experience_median  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency   i.kbcom_1  i.presrev  if idpresoppose==1,  vce(cluster kbcom_1)

*
*

* DESCRIPTIVE STATISTICS FOR EACH PARTISAN CONTROL REGIME *
sum wSenComm_committee_pres1 if e(sample) & sendivide==0, detail
sum wSenComm_committee_pres1 if e(sample) & sendivide==1, detail

** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_committee_pres1" -- IDPRESOPPOSE==1 *
lincomest (committee_pres1 * 0.2326386 +  1.sendivide#c.committee_pres1 * 0.2366383) - committee_pres1 * 0.2326386, eform(hr)
matrix modelD1b = r(table)
mat list modelD1b
*
*





*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* SENATE COMMITTEE CHAIR PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D2.B: COX SEMIPARAMETRIC MODEL] -- IDPRESOPPOSE==1 *

stcox  c.chair_pres1##i.sendivide   pressenfloorabsdist  chair_experience_1  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency  i.kbcom_1  i.presrev   if idpresoppose==1,  vce(cluster kbcom_1)
*
*
* DESCRIPTIVE STATISTICS FOR EACH PARTISAN CONTROL REGIME *
sum wSenComm_chair_pres1 if e(sample) & sendivide==0, detail
sum wSenComm_chair_pres1 if e(sample) & sendivide==1, detail


** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_chair_pres1" -- IDPRESOPPOSE==1 *
lincomest (chair_pres1 * 0.1672002 +  1.sendivide#c.chair_pres1 * 0.1737406) - chair_pres1 * 0.1672002, eform(hr)
matrix modelD2b = r(table)
mat list modelD2b
*
*



*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




* SENATE COMMITTEE MEDIAN PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D3.B: WEIBULL PARAMETRIC MODEL] -- IDPRESOPPOSE==1 *

streg c.committee_pres1##i.sendivide   pressenfloorabsdist  experience_median  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency  i.kbcom_1  i.presrev if idpresoppose==1,  distribution(weibull) vce(cluster kbcom_1)

*
*


** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_committee_pres1" -- IDPRESOPPOSE==1 *
lincomest (committee_pres1 * 0.2326386 +  1.sendivide#c.committee_pres1 * 0.2366383) - committee_pres1 * 0.2326386, eform(hr)
matrix modelD3b = r(table)
mat list modelD3b
*
*





*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* SENATE COMMITTEE CHAIR PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D4.B: WEIBULL PARAMETRIC MODEL] -- IDPRESOPPOSE==1 *

streg  c.chair_pres1##i.sendivide   pressenfloorabsdist  chair_experience_1  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency  i.kbcom_1  i.presrev if idpresoppose==1,  distribution(weibull)  vce(cluster kbcom_1)
*
*


** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_chair_pres1" -- IDPRESOPPOSE==1 *
lincomest (chair_pres1 * 0.1672002 +  1.sendivide#c.chair_pres1 * 0.1737406) - chair_pres1 * 0.1672002, eform(hr)
matrix modelD4b = r(table)
mat list modelD4b
*
*



**** CREATE FIGURE D2 BASED ON MARGINAL HAZARD RATIO ESTIMATE EFFECTS FROM MODELS D1.B - D4.B ****

**** FIGURE D2 ****

matrix C = J(4, 3, .)
matrix coln C = Point ll95 ul95
matrix rown C = 1 2 3 4

matrix C[1,1] = modelD1b[1,1]
matrix C[1,2] = modelD1b[5,1]
matrix C[1,3] = modelD1b[6,1]

matrix C[2,1] = modelD2b[1,1]
matrix C[2,2] = modelD2b[5,1]
matrix C[2,3] = modelD2b[6,1]

matrix C[3,1] = modelD3b[1,1]
matrix C[3,2] = modelD3b[5,1]
matrix C[3,3] = modelD3b[6,1]

matrix C[4,1] = modelD4b[1,1]
matrix C[4,2] = modelD4b[5,1]
matrix C[4,3] = modelD4b[6,1]


**********

coefplot (matrix(C[,1]), ci((2 3))), grid(none) xline(1, lcolor(red%40) lpattern(dash)) xtitle("Hazard Ratio", size(small) margin(t=2)) ylabel(1 "Model D1.B" 2 "Model D2.B" 3 "Model D3.B" 4 "Model D4.B", labsize(small) noticks) mlabel format(%9.3f) mlabposition(12) mlabsize(vsmall) xlabel(0(1)4, angle(0) labsize(small) format(%9.1f)) msymbol(o) mcolor(black) msize(small) title("FIGURE D2", size(med)) ciopts(lcolor(black)) legend(off) subtitle("Differential Partisan Control Effects of Committee-President Ideological Distance" "(Presidential Ideologically-Opposed Agencies)", size(small))


graph save "Graph" "/Users/jasonbyers/Dropbox/Jason Byers/Co-Authored Projects/Projects with George Krause/Krause Projects/Confirmation Dynamics Project/Confirmation Delay & Senate Committees/2023 Version/Fall 2024/Statistics/Graphics/Appendix D/FigureD2.gph", replace



************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************






*** 3. PRESIDENTIAL IDEOLOGICALLY-NEUTRAL AGENCIES ***







* SENATE COMMITTEE MEDIAN PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D1.C: COX SEMIPARAMETRIC MODEL] --  IDPRESALLY==0  & IDPRESOPPOSE==0 *

stcox  c.committee_pres1##i.sendivide  pressenfloorabsdist  experience_median  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency  i.kbcom_1  i.presrev  if idpresoppose==0 & idpresally==0,  vce(cluster kbcom_1)

*
*

* DESCRIPTIVE STATISTICS FOR EACH PARTISAN CONTROL REGIME *
sum wSenComm_committee_pres1 if e(sample) & sendivide==0, detail
sum wSenComm_committee_pres1 if e(sample) & sendivide==1, detail

** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_committee_pres1" --  IDPRESALLY==0  & IDPRESOPPOSE==0 *
lincomest (committee_pres1 * 0.3628366 +  1.sendivide#c.committee_pres1 * 0.2385247) - committee_pres1 * 0.3628366, eform(hr)
matrix modelD1c = r(table)
mat list modelD1c
*





*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




* SENATE COMMITTEE CHAIR PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D2.C: COX SEMIPARAMETRIC MODEL] --  IDPRESALLY==0  & IDPRESOPPOSE==0 *

stcox  c.chair_pres1##i.sendivide  pressenfloorabsdist  chair_experience_1  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency  i.kbcom_1  i.presrev  if idpresoppose==0 & idpresally==0,  vce(cluster kbcom_1)
*
*
* DESCRIPTIVE STATISTICS FOR EACH PARTISAN CONTROL REGIME *
sum wSenComm_chair_pres1 if e(sample) & sendivide==0, detail
sum wSenComm_chair_pres1 if e(sample) & sendivide==1, detail


** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_chair_pres1" --  IDPRESALLY==0  & IDPRESOPPOSE==0 *
lincomest (chair_pres1 * 0.281924 +  1.sendivide#c.chair_pres1 * 0.2453182) - chair_pres1 * 0.281924, eform(hr)
matrix modelD2c = r(table)
mat list modelD2c
*
*





*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************






* SENATE COMMITTEE MEDIAN PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D3.C: WEIBULL PARAMETRIC MODEL] --  IDPRESALLY==0  & IDPRESOPPOSE==0 *

streg  c.committee_pres1##i.sendivide   pressenfloorabsdist  experience_median  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency i.kbcom_1 i.presrev if idpresoppose==0 & idpresally==0,  distribution(weibull)  vce(cluster kbcom_1)

*
*


** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_committee_pres1" --  IDPRESALLY==0  & IDPRESOPPOSE==0 *
lincomest (committee_pres1 * 0.3628366 +  1.sendivide#c.committee_pres1 * 0.2385247) - committee_pres1 * 0.3628366, eform(hr)
matrix modelD3c = r(table)
mat list modelD3c
*





*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




* SENATE COMMITTEE CHAIR PREFERENCE DISTANCE & UNIFIED/DIVIDED PARTISAN CONTROL OF SENATE & PRESIDENCY [MODEL D4.C: WEIBULL PARAMETRIC MODEL] --  IDPRESALLY==0  & IDPRESOPPOSE==0 *

streg  c.chair_pres1##i.sendivide   pressenfloorabsdist  chair_experience_1  committeestaffsize ln_combills_workload   pres_app_m first90 preselection lameduck    kv_workload  polarization  workload      female priorconfirm denied  x_itier_2 x_itier_3 x_itier_4 defense infrastructure social fvra firstrecess secondrecess policy_majagency   i.kbcom_1  i.presrev if idpresoppose==0 & idpresally==0, distribution(weibull)  vce(cluster kbcom_1)
*
*


** CONDITIONAL COEFFICIENT ANALYSIS TESTS: DIRECTION [+] ** 

* DIFFERENCE BETWEEN DIVIDED AND UNIFIED PARTISAN CONTROL OF SENATE & PRESIDENCY: INTERQUARTILE UNIT CHANGE IN "wSenComm_chair_pres1" --  IDPRESALLY==0  & IDPRESOPPOSE==0 *
lincomest (chair_pres1 * 0.281924 +  1.sendivide#c.chair_pres1 * 0.2453182) - chair_pres1 * 0.281924, eform(hr)
matrix modelD4c = r(table)
mat list modelD4c
*
*



**** CREATE FIGURE D3 BASED ON MARGINAL HAZARD RATIO ESTIMATE EFFECTS FROM MODELS D3.C - D4.C ****

**** FIGURE D3 ****

matrix E = J(4, 3, .)
matrix coln E = Point ll95 ul95
matrix rown E = 1 2 3 4

matrix E[1,1] = modelD1c[1,1]
matrix E[1,2] = modelD1c[5,1]
matrix E[1,3] = modelD1c[6,1]

matrix E[2,1] = modelD2c[1,1]
matrix E[2,2] = modelD2c[5,1]
matrix E[2,3] = modelD2c[6,1]

matrix E[3,1] = modelD3c[1,1]
matrix E[3,2] = modelD3c[5,1]
matrix E[3,3] = modelD3c[6,1]

matrix E[4,1] = modelD4c[1,1]
matrix E[4,2] = modelD4c[5,1]
matrix E[4,3] = modelD4c[6,1]


**********

coefplot (matrix(E[,1]), ci((2 3))), grid(none) xline(1, lcolor(red%40) lpattern(dash)) xtitle("Hazard Ratio", size(small) margin(t=2)) ylabel(1 "Model D1.C" 2 "Model D2.C" 3 "Model D3.C" 4 "Model D4.C", labsize(small) noticks) mlabel format(%9.3f) mlabposition(12) mlabsize(vsmall) xlabel(0(1)2, angle(0) labsize(small) format(%9.1f)) msymbol(o) mcolor(black) msize(small) title("FIGURE D3", size(med)) ciopts(lcolor(black)) legend(off) subtitle("Differential Partisan Control Effects of Committee-President Ideological Distance" "(Presidential Ideologically-Neutral Agencies)", size(small))


graph save "Graph" "/Users/jasonbyers/Dropbox/Jason Byers/Co-Authored Projects/Projects with George Krause/Krause Projects/Confirmation Dynamics Project/Confirmation Delay & Senate Committees/2023 Version/Fall 2024/Statistics/Graphics/Appendix D/FigureD3.gph", replace



*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



log close
